/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       cheats.h

	$Header: /game/cheats.h $

	$NoKeywords: $

 ************************************************************************/
#ifndef CHEATS_H_INCLUDED
#define CHEATS_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <string>
#include "counted_ptr.h"
#include "game_window.h"

class t_artifact;
class t_text_edit_window;
class t_adventure_frame;
class t_adventure_map;

// ------------------------------------------------------------------
// save game dialog
// ------------------------------------------------------------------
class t_dialog_cheat : public t_window
{
public:
	t_dialog_cheat( t_window* parent = 0, t_adventure_map * map = 0 );

	std::string			get_cheat_string() const;

private:
	void				cheat_input_finished( t_text_edit_window* );
	void				cheat_input_change( t_text_edit_window* );
	void				do_cheat( int cheat_id );

	t_counted_ptr<t_text_edit_window>	m_cheat_box;
	t_window *							m_frame;
	t_adventure_map *					m_map;
};

bool create_artifact_cheat( int id, t_artifact& artifact );

#endif // CHEATS_H_INCLUDED